﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//import
using ddcCajamarca.BusinessEntities.Administracion;
using ddcCajamarca.BusinessEntities.Directorio;
using ddcCajamarca.BusinessLogic.Administracion.Service;
using ddcCajamarca.BusinessLogic.Directorio.Service;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using System.Web.ModelBinding;
using ddcCajamarca.BusinessLogic.Post.Service;
using ddcCajamarca.BusinessEntities.Post;

namespace ddcCajamarca.Web
{
    public partial class _Default : Page
    {
        [Dependency]
        public INotaInformativaBL notaInformativaBL { get; set; }

        [Dependency]
        public IPersonaBL PersonaBL { get; set; }

        [Dependency]
        public I_ImagenBL ImagenBL { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public IEnumerable<NotaInformativa> GetNota()
        {
            //[Control("txtCriterio")]string criteri
            return notaInformativaBL.SelectAllNotaInformativa();

        }

        public List<Persona> GetPersonaByFechCumpleaños()
        {
            return PersonaBL.GetAllPersonasByFechCumpleaños();
        }

        public IEnumerable<Imagen> GetImagenes()
        {
            return ImagenBL.GetAllImgs();
        }
        
    }
}